﻿
using TianYuan.Data.Dapper.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dapper;
using TianYuan.Data.Dapper;

namespace Domain
{
    public class ProductRepository : Repository<Product>, IProductRepository
    {
        public ProductRepository(IDbContext context) :base(context)
        {
        }

        public IList<Product> Query()
        {
            var list = _Context.Connection.Query<Product>(@"Select * from Product where Name=@Name ", new { Name = "曾繁林" }).ToList(); ;
            var list1 = _Context.Queryable<Product>().ToList();
            return list1;
        }
    }
}
